#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int* twoSum(int* nums, int numsSize, int target, int* returnSize) {
    *returnSize = 2;
    int* array = (int*)malloc(sizeof(int) * (*returnSize));
    for (int i = 0; i < numsSize - 1; i++) {
        for (int j = i + 1; j < numsSize; j++) {
            if (target == nums[i] + nums[j]) {
                array[0] = i;
                array[1] = j;
                return array;
            }
        }
    }
    return 0;
}